package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.entity.UserFollow;
import com.isoft.c2team3service2.entity.UserDTO;

import java.util.List;

public interface UserFollowService extends IService<UserFollow> {
    // 关注用户
    boolean followUser(Integer followedId);

    // 取消关注
    boolean unfollowUser(Integer followedId);

    // 检查是否已关注
    boolean isFollowed(Integer followedId);

    // 获取关注列表（返回UserDTO，含昵称/头像）
    List<UserDTO> getFollowedList();

    // 获取粉丝列表（返回UserDTO，含昵称/头像）
    List<UserDTO> getFollowerList();
}